-- GENERATED SPELL FOR [Torgos] --


function spell0_18707(pUnit, Event) --@Fevered Disease,n/a--
pUnit:FullCastSpellOnTarget(32903,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18707', 500, 1)
end

function spell1_18707(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(13579,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18707', 4266, 1)
end

function spell2_18707(pUnit, Event) --@Gut Rip,n/a--
pUnit:FullCastSpellOnTarget(32022,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18707', 649, 1)
end

function Sorts_18707(pUnit, Event)
local choix_sorts_18707 = math.random(0, 2)
if choix_sorts_18707 == 0 then
pUnit:RegisterEvent('spell0_18707', 1, 1)
end
if choix_sorts_18707 == 1 then
pUnit:RegisterEvent('spell1_18707', 1, 1)
end
if choix_sorts_18707 == 2 then
pUnit:RegisterEvent('spell2_18707', 1, 1)
end
end

function mob18707_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18707', math.random(1500, 3000), 1)
end

function mob18707_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18707_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18707_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18707, 1, 'mob18707_Action')
RegisterUnitEvent(18707, 2, 'mob18707_Leave')
RegisterUnitEvent(18707, 3, 'mob18707_Kill')
RegisterUnitEvent(18707, 4, 'mob18707_Die')
